<?php
$arr[] = 10;
var_dump($arr) . "<br/>";
echo $arr[0] . "<br/>";
$name = "张三";
echo $name . "<br/>";
$age = 20;
echo $age . "<br/>";
echo "名字叫:{$name}年龄:{$age}";
$table = <<<tab
<table border="1px" width="100px">
<tr>
<td>姓名</td>
<td>年龄</td>
</tr>
<tr>
<td>$name</td>
<td>$age</td>
</tr>
</table>
tab;
echo $table;

for ($i = 0; $i <= 100; $i++) {
	$num[] = $i;
}
unset($num[20]);
//删除
var_dump($num);
//数值运算
$a = 5;
$b = 2;
echo $a + $b . "<br/>";
echo $a * $b . "<br/>";
echo $a / $b . "<br/>";
//float型,整数相处为整数那么是int型
echo $a % $b . "<br/>";
if ($a++ > 4) {//$a先与4做比较，再加加
	echo $a;
};
?>